package cn.lhl.action.util;

import cn.lhl.mvc.ServletActionContext;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/4/1/001.
 */
public class ActionUtil {
    public static String getClassName(){
        HttpServletRequest request= ServletActionContext.getRequest();
        String uri=request.getRequestURI();
        String content=request.getContextPath();
        String result=uri.substring(content.length());
        return result.substring(1,result.lastIndexOf("."));
    }
}
